package cn.tedu.lucky.draw.server.service;

import cn.tedu.lucky.draw.server.protocol.po.Activity;
import cn.tedu.lucky.draw.server.protocol.po.Prize;
import cn.tedu.lucky.draw.server.protocol.query.ActivityQuery;
import org.json.JSONException;

import java.util.List;

/**
 * 服务层-抽奖活动接口
 */
public interface IActivityService {

    void saveActivity(Activity activity);

    List<Activity> getAll(ActivityQuery activityQuery);

    Activity findActivityById(Long id);

    List<Activity> findAll();

    Prize trigger(Long activityId) throws JSONException;

}
